FROM python:3.10-alpine
WORKDIR /code
COPY . /app
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0
RUN apt install build-essential python-dev
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install pip -U
RUN pip install Flask==3.0.3
RUN pip install gdal==3.8.2
RUN pip install GeoAlchemy2==0.12.5
RUN pip install geopandas==0.12.1
RUN pip install gevent==22.10.1
RUN pip install gstools==1.4.1
RUN pip install matplotlib==3.6.2
RUN pip install naturalneighbor==0.2.1
RUN pip install numpy==1.23.4
RUN pip install Pillow==10.4.0
RUN pip install psutil==5.9.4
RUN pip install psycopg2==2.9.9
RUN pip install PyKrige==1.7.0
RUN pip install pyproj==3.6.1
RUN pip install rasterio==1.3.9
RUN pip install Requests==2.32.3
RUN pip install scipy==1.9.3
RUN pip install Shapely==2.0.6
RUN pip install SQLAlchemy==1.4.43
RUN pip install Werkzeug==3.0.4
EXPOSE 5000
CMD ["python", "main.py"]
